import { NgModule } from "@angular/core";

import { SharedModule } from "@shared";
import { PmsRoutingModule } from "./pms-routing.module";
import { UserListComponent } from "./user-list/user-list.component";
import { UserEditComponent } from "./user-list/edit/user-edit.component";
import { RoleListComponent } from "./role-list/role-list.component";
import { RoleEditComponent } from "./role-list/edit/role-edit.component";
import { MenuListComponent } from "./menu-list/menu-list.component";
import { MenuEditComponent } from "./menu-list/edit/menu-edit.component";
import { UserSettingComponent } from "./user-setting/user-setting.component";
import { NzTransferModule } from "ng-zorro-antd/transfer";
import { NzTreeModule } from "ng-zorro-antd/tree";


const COMPONENTS = [
  UserListComponent,
  RoleListComponent,
  MenuListComponent
];

const COMPONENTS_NOROUNT = [UserEditComponent, RoleEditComponent, MenuEditComponent];

@NgModule({
  imports: [SharedModule, PmsRoutingModule, NzTransferModule, NzTreeModule],
  declarations: [...COMPONENTS, ...COMPONENTS_NOROUNT, MenuListComponent, UserSettingComponent],
  entryComponents: COMPONENTS_NOROUNT
})
export class PmsModule {
}
